//
//  PasswordManagement ViewController.m
//  PeopleStreet
//
//  Created by 辰领科技 on 16/6/7.
//  Copyright © 2016年 yuf. All rights reserved.
//

#import "PasswordManagement ViewController.h"
#import "RetrievePasswordViewController.h"

@interface PasswordManagement_ViewController ()
@property (strong, nonatomic) IBOutlet UIView *navView;
@property (strong, nonatomic) IBOutlet UIScrollView *scroview;


@end

@implementation PasswordManagement_ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    [self initViewLayout];
}


- (void)initViewLayout{
    [self adaptiveViewLayout:self.view];
    [self adaptiveViewLayout:self.navView];
    [self adaptiveViewLayout:self.scroview];

    _scroview.contentSize = flexibleSize(CGSizeMake(0, 505), NO);
}

#pragma mark - 返回
- (IBAction)back:(id)sender {
    [self.navigationController  popViewControllerAnimated:YES];
}


#pragma mark - 修改密码
- (IBAction)ChangePassword:(id)sender {
    UIStoryboard *secondStroyBoard=[UIStoryboard storyboardWithName:@"PersonCenterStoryboard" bundle:nil];
    UIViewController *page = [secondStroyBoard instantiateViewControllerWithIdentifier:@"PasswordChange"];
    [self.navigationController  pushViewController:page animated:YES];
}
#pragma mark - 忘记密码
- (IBAction)ForgotPassword:(id)sender {
    UIStoryboard *secondStroyBoard=[UIStoryboard storyboardWithName:@"PersonCenterStoryboard" bundle:nil];
    UIViewController *page = [secondStroyBoard instantiateViewControllerWithIdentifier:@"RetrievePassword"];
    [self.navigationController  pushViewController:page animated:YES];
}



#pragma   mark---- GetADBanner Request Delegate

-(void)fetchDatabaseFinished:(NSMutableDictionary *)database withTag:(NSInteger)tag{
//    if (tag == SX_SX_hasPayPwd){
//        if (  [[database valueForKey:@"type"] integerValue]!=1 ) {
//            
//            [[CWHUDTips sharedInstance]  showTips:[database valueForKey:@"msg"]  withStatus:1 dismissAfter:1.5];
//            
//        }else  {
//            NSInteger result = [database[@"result"][@"flag"]integerValue];
//            if (result<=0) {
//                
//            }else{
//                self.view.userInteractionEnabled = YES;
//            }
//        }
//    }
}
-(void)fetchDatabaseFailed:(NSError *)error message:(NSString *)message{
    
    //
    [self dismissWaitDialog];
    
    
}



- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


@end
